package com.swingson.properties.impl;

import com.swingson.SwingsonGui;
import com.swingson.jsonparser.JsonElement;
import com.swingson.properties.BasePropertyProcessor;
import javax.swing.JComponent;
import javax.swing.JPopupMenu;

/**
 * @author sad
 */
public class PopupMenuSeparatorPropertyProcessor extends BasePropertyProcessor {

    @Override
    public Object processProperty(JsonElement jsonElement, JComponent component, final SwingsonGui gui, String propertyName) {
        JPopupMenu menu = (JPopupMenu) component;
        menu.addSeparator();
        return null;
    }
}
